# encoding: utf-8
"""

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    created by lei.chang on '11/04/2025'
    comment: 工程资源(全局)
"""
from pydantic import BaseModel
from config import Config


class Model(BaseModel):
    """
    """
    api_key: str
    base_url: str
    model_name: str


deepseek_model = Model(**Config.DEEPSEEK)


class ZegoConfig(BaseModel):
    """
    """
    app_id: int
    secret: str


zego_config = ZegoConfig(**Config.ZEGO)


class QCosConfig(BaseModel):
    """
    """
    secret_id: str
    secret_key: str
    region: str
    bucket: str
    host: str


qcos_config = QCosConfig(**Config.QCOS)


class Global:

    _count = 0

    @classmethod
    def count(cls) -> int:
        """ 全局计数器
        :return:
        """
        cls._count += 1
        return cls._count


